package com.ithema.service;

import com.itheima.domain.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional//事务
public interface BookService {

    boolean saveBook(Book book);

    boolean deleteBook(Integer id);

    boolean update(Book book);


    List<Book> selectBookAll();//查全部

    Book selectBook_Id(Integer id);//查单个
}
